//
//  BaseVC.m
//  BrushFace
//
//  Created by Zzz on 15/11/29.
//  Copyright © 2015年 Zzz. All rights reserved.
//

#import "BaseVC.h"

@interface BaseVC ()

@end

@implementation BaseVC
{
}
- (void)viewDidLoad
{
    [super viewDidLoad];
    [self.navigationController.navigationBar setHidden:YES];
    _navBar = [BaseNavBar create];
    [self.view addSubview:_navBar];
    

//    @weakify(self);
//    [[[_navBar getLeftBtn]rac_signalForControlEvents:UIControlEventTouchUpInside]subscribeNext:^(id x) {
//        @strongify(self);
//        [self.navigationController popViewControllerAnimated:YES];
//    }];
    [[_navBar getLeftBtn] addTarget:self action:@selector(leftButtonClick) forControlEvents:UIControlEventTouchUpInside];
}
#pragma mark -leftButtonClick
- (void)leftButtonClick{
    [self.navigationController popViewControllerAnimated:YES];
}

#pragma mark - **************** 隐藏导航栏
- (void)hideNav
{
    [self.navBar setHidden:YES];
}
- (void)showNav{
    [self.navBar setHidden:NO];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

@end
